package com.zhiyou.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtil {
	
	//判断一个字符串能否转换成数字
	public boolean isAbleFormat(String string) {
		Pattern pattern = Pattern.compile("[0-9]+");
		Matcher isNum = pattern.matcher(string);
		if( !isNum.matches() ){
			return false;
		}else {				
			return true;
		}
	}

}
